//
//  SlidingViewController.m
//  MoneyIndividual
//
//  Created by Le Anh Tai on 12/26/13.
//  Copyright (c) 2013 Le Anh Tai. All rights reserved.
//

#import "SlidingViewController.h"
#import "MenuController.h"
#import "MenuMediator.h"
#import "ExpenseIncomeController.h"

@interface SlidingViewController ()

@end

@implementation SlidingViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view.
    
    [self setupMenu];
}

- (void)setupMenu
{
    if (self.underLeftViewController == nil)
    {
        MenuController *menuController = [[MenuController alloc] init];
        UINavigationController *navigationController = [UINavigationController newNavigationWithRoot:menuController];

        self.underLeftViewController  = navigationController;
    }
    
    [[MenuMediator shared] openScreen:ScreenNameHomeController IsSelectMenuItem:YES];
}

@end
